package model;

/**
 * CD.java
 * Purpose: This class represent a person object
 * 
 * @author hbrems
 * @version 1.0 10/12/2011
 */

public abstract class Person {
	/* The age of the person */
	protected int age; 
	/* the First name of the person */
	protected String firstName;
	/* The last name of the person */
	protected String lastName;
	/* The telephone number of the person */
	protected String telephone;

	/** Constructs a new person */
	public Person() {
	}

	/** Constructs a new person */
	public Person(String firstName, String lastName) {
		this.firstName = firstName;
		this.lastName = lastName;
	}

	/** Returns the age of the person */
	public int getAge() {
		return age;
	}

	/** Sets the age of the person */
	public void setAge(int age) {
		this.age = age;
	}

	/** Returns the first name of the person */
	public String getFirstName() {
		return this.firstName;
	}

	/** Sets the first name of the person */
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	/** Returns the last name of the person */
	public String getLastName() {
		return this.lastName;
	}

	/** Sets the last name of the Person */
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	/** Returns the telephone number of the person */
	public String getTelephone() {
		return telephone;
	}

	/** Sets the telephone number of the person */
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
	
	/** Returns a string representation of the person */
	public String toString() {
		return this.firstName + " " + this.lastName;
	}
}
